package Mangos::DB::Mangos::SpellProcEvent;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'spell_proc_event',

    columns => 
    [
        entry            => { type => 'integer', not_null => 1 },
        SchoolMask       => { type => 'integer', default => '0', not_null => 1 },
        SpellFamilyName  => { type => 'integer', default => '0', not_null => 1 },
        SpellFamilyMask0 => { type => 'integer', default => '0', not_null => 1 },
        SpellFamilyMask1 => { type => 'integer', default => '0', not_null => 1 },
        SpellFamilyMask2 => { type => 'integer', default => '0', not_null => 1 },
        procFlags        => { type => 'integer', default => '0', not_null => 1 },
        procEx           => { type => 'integer', default => '0', not_null => 1 },
        ppmRate          => { type => 'float', default => '0', not_null => 1, precision => 32 },
        CustomChance     => { type => 'float', default => '0', not_null => 1, precision => 32 },
        Cooldown         => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'entry' ],
);

1;

package Mangos::DB::Mangos::SpellProcEvent::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::SpellProcEvent' }

__PACKAGE__->make_manager_methods('spell_proc_event');

1;
